﻿@model MobileWebsiteGenerator.Entities.Customer
@{
    ViewBag.Title = "Edit";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<h2>
    Edit</h2>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
@using (Html.BeginForm())
{
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>Customer</legend>
        <div class="editor-label">
            @Html.HiddenFor(model => model.Customer_id)
        </div>
        <div class="editor-label">
            <label for="UserName">
                User Name</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            <input class="text-box single-line" data-val="true" data-val-required="The Password field is required."
                id="Password" name="Password" type="password" value="@Html.DisplayFor(model => model.Password)">
            <span class="field-validation-valid" data-valmsg-for="Password" data-valmsg-replace="true">
            </span>
            @Html.ValidationMessageFor(model => model.Password)
        </div>
        <div class="editor-label">
            <label for="ConfirmPassword">
                Confirm Password</label>
        </div>
        <div class="editor-field">
            <input class="text-box single-line valid" data-val="true" data-val-equalto="&amp;#39;confirmPassword&amp;#39; and &amp;#39;Password&amp;#39; do not match."
                data-val-equalto-other="*.Password" id="confirmPassword" name="confirmPassword"
                type="password" value="@Html.DisplayFor(model => model.confirmPassword)">
            <span class="field-validation-valid" data-valmsg-for="confirmPassword" data-valmsg-replace="true">
            </span>
        </div>
        <div class="editor-label">
            <label>
                Full Name</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.FullName)
            @Html.ValidationMessageFor(model => model.FullName)
        </div>
        <div class="editor-label">
            <label>
                Company</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.company)
            @Html.ValidationMessageFor(model => model.company)
        </div>
        <div class="editor-label">
            <label>
                Website Address</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.WebsiteAddress)
            @Html.ValidationMessageFor(model => model.WebsiteAddress)
        </div>
        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>
        <div class="editor-label">
            <label>
                Confirm Email</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmEmail)
            @Html.ValidationMessageFor(model => model.ConfirmEmail)
        </div>
        <div class="editor-label">
            <label>
                Phone</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.phone)
            @Html.ValidationMessageFor(model => model.phone)
        </div>
        <div class="editor-label">
            <label>
                Active</label>
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.IsActive)
            @Html.ValidationMessageFor(model => model.IsActive)
        </div>
        <div class="editor-label">
            @Html.HiddenFor(model => model.web_id)
        </div>
        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}
<div>
    @Html.ActionLink("Back to List", "customerlist")
</div>
